import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {Tool01Component} from './tool01/tool01.component';
import {Tool02Component} from './tool02/tool02.component';
import {Tool03Component} from './tool03/tool03.component';
import {Tool03SqlComponent} from './tool03-sql/tool03-sql.component';

const routes: Routes = [
  {path: 'tool01', component: Tool01Component},
  {path: 'tool02', component: Tool02Component},
  {path: 'tool03', component: Tool03Component},
  {path: 'tool03sql', component: Tool03SqlComponent},
  {
    path: '',
    redirectTo: 'tool03sql',
    pathMatch: 'full'
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class WebpageToolRoutingModule {
}
